<?php
/**
 * OaNotice数据模型
 */
class OaNoticeTable {
	// 数据表模型配置
	public $config = [
			'name' => 'oa_notice',
			'title' => '公告信息',
			'search_key' => '',
			'add_button' => 1,
			'del_button' => 1,
			'search_button' => 1,
			'check_all' => 1,
			'list_row' => 0,
			'addon' => 'OaSystem'
	];
	
	// 列表定义
	public $list_grid = [
			'' => [
					'title' => '通知内容',
					'come_from' => 0,
					'width' => '',
					'is_sort' => 0,
					'name' => '',
					'function' => '',
					'href' => [ ]
			]
	];
	
	// 字段定义
	public $fields = [
			'appid' => [
					'title' => '小程序appid',
					'field' => 'varchar(255) NOT NULL',
					'type' => 'string',
					'is_must' => 1,
					'placeholder' => '请输入内容'
			],
			'title' => [
					'title' => '标题',
					'field' => 'varchar(255) NULL',
					'type' => 'string',
					'placeholder' => '请输入内容'
			],
			'details' => [
					'title' => '通知内容',
					'field' => 'varchar(512) NULL',
					'type' => 'string',
					'placeholder' => '请输入内容'
			],
			'type' => [
					'title' => '类型',
					'field' => 'int(10) NULL',
					'type' => 'string',
					'placeholder' => '请输入内容'
			],
			'to_users' => [
					'title' => '目标用户',
					'field' => 'varchar(512) NULL',
					'type' => 'string',
					'placeholder' => '请输入内容'
			],
			'time' => [
					'title' => '创建时间',
					'type' => 'string',
					'field' => 'int(10) NULL',
					'placeholder' => '请输入内容'
			],
			'dept_id' => [
					'title' => '部门ID',
					'field' => 'int(10) NULL',
					'type' => 'string',
					'placeholder' => '请输入内容'
			],
			'from_who' => [
					'title' => '来自于',
					'field' => 'varchar(255) NULL',
					'type' => 'string',
					'placeholder' => '请输入内容'
			],
			'creater' => [
					'title' => '创建者',
					'field' => 'int(10) NULL',
					'type' => 'string',
					'placeholder' => '请输入内容'
			],
			'status' => [
					'title' => '状态',
					'type' => 'string',
					'field' => 'varchar(255) NULL',
					'value' => 1,
					'remark' => '1:已发送， 2:新消息, 3: 已处理 4:已完成',
					'is_show' => 0,
					'is_must' => 0
			],
			'fileids' => [
					'title' => '文件',
					'type' => 'string',
					'field' => 'varchar(255) NULL',
					'validate_file_size' => 10485760,
					'placeholder' => '请输入内容'
			],
			'is_del' => [
					'title' => '删除',
					'type' => 'bool',
					'field' => 'tinyint(2) NULL',
					'is_show' => 1,
					'placeholder' => '请输入内容'
			],
			'leader' => [
					'title' => '领导ID',
					'type' => 'num',
					'field' => 'int(10) NULL',
					'remark' => '督办领导， oa_employee 主键ID',
					'is_show' => 1,
					'placeholder' => '请输入内容'
			]
	];
}	